<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>试卷选择</title>
<meta name="decorator" content="default"/>
<script type="text/javascript">
	function checkForm(){
		var paperId=$("#paperId").val();
		if(paperId==null || paperId==""){
			alert("请选择考试试卷！");
			return false;
		}
		return true;
	}
</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/gra/paper/examChoose">试卷选择</a></li>
	</ul>
<div class="data_list">
	<div class="data_content" style="font-size:20px;">
		<form:form id="selectForm" modelAttribute="paper" action="${ctx}/gra/paper/examLine" method="post" onsubmit="return checkForm()" class="form-horizontal">
			<table width="40%" align="center">
				<tr>
					<td><label style="font-size:20px;"><strong>请选择考试试卷：</strong></label></td>
					<td>
						<select id="paperId" name="id" class="input-medium">
							<option value="">请选择...</option>
							<c:forEach var="paper" items="${page.list}">
								<option value="${paper.id }">${paper.paperName }</option>
							</c:forEach>
						</select>
					</td>
				</tr>
				<tr>
					<td colspan="2">&nbsp;</td>
				</tr>
				<tr>
					<td>
						<input type="submit" class="btn btn-primary" value="确定" style="font-size:20px;"/>
					</td>
					<td>
						<input type="button" class="btn btn-primary" value="返回" style="font-size:20px;" onclick="javascript:history.back()"/>
					</td> 
				</tr>
			</table>
		</form:form>
	</div>
</div>
</body>
</html>